-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Tidy cleanup #143724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Tidy cleanup #143724
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
There are changes to the cc @jieyouxu The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
This comment has been minimized.
This comment has been minimized.
542dd67
to
97473a1
Compare
This comment has been minimized.
This comment has been minimized.
97473a1
to
c4b228c
Compare
src/tools/tidy/src/features.rs
Outdated
// NB: the `splitn` always succeeds, even if the delimiter is not present. | ||
Some(i) => line[i + gate_test_str.len()..].splitn(2, ' ').next().unwrap(), | ||
Some(i) => line[i + gate_test_str.len()..].split(' ').next().unwrap(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it better use split_once? and fix comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split_once will return None
if the delimiter is not present, but split returns the whole string. I fixed the comment though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, true.
@@ -27,14 +29,13 @@ pub fn check(root_path: &Path, compiler_path: &Path, bad: &mut bool) { | |||
// e607be166673a8de9fc07f6f02c60426e556c5f2 src/gcc (master-e607be166673a8de9fc07f6f02c60426e556c5f2.e607be) | |||
// +e607be166673a8de9fc07f6f02c60426e556c5f2 src/gcc (master-e607be166673a8de9fc07f6f02c60426e556c5f2.e607be) | |||
let git_output = String::from_utf8_lossy(&git_output.stdout) | |||
.trim() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☔ The latest upstream changes (presumably #143721) made this pull request unmergeable. Please resolve the merge conflicts. |
9eccfdd
to
11c005e
Compare
11c005e
to
8bf88a2
Compare
|
@bors r+ rollup |
No description provided.